package cn.itcast.day02.demo04;

public class Demo01Student {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setName("张三");
        stu1.setAge(20);
        System.out.println("姓名：" + stu1.getName() + ",年龄" +stu1.getAge());
        System.out.println("==========================================");
        Student stu2 = new Student("李四",19);
        System.out.println("姓名：" + stu1.getName() + ",年龄" +stu1.getAge());
        stu2.setAge(23);
        System.out.println("姓名：" + stu1.getName() + ",年龄" +stu1.getAge());
    }
}
